package com.caregiver.watch.business.care.model.vo;

import com.caregiver.watch.business.care.enums.PackageTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @description: 健康预警服务信息
 * @program: caregiver-watch
 * @author: 疆戟
 * @create: 2025-10-05 17:54
 */
@Data
@Schema(description = "健康预警服务信息")
public class HealthAlertServiceInfoVo {

    @Schema(description= "是否开通健康预警")
    private Boolean isOpenHealthWarning;

    @Schema(description= "是否首次开通")
    private Boolean isFirstOpen;

    @Schema(description= "健康预警到期时间(如果是次数的没有该值)")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime healthWarningExpireTime;

    // 套餐类型
    @Schema(description= "套餐类型")
    private PackageTypeEnum packageType;

    // 支持设备数量
    @Schema(description= "支持设备数量")
    private Integer supportDeviceNum;

    // 守护天数
    @Schema(description= "累计守护天数")
    private Integer totalGuardDays;

    // 已经预警次数
    @Schema(description= "已经预警次数")
    private Integer warningNum;

    // 总预警次数
    @Schema(description= "总预警次数(如果是包月的该值为-1)")
    private Integer totalWarningNum;

    // 剩余预警次数
    @Schema(description= "剩余预警次数(如果是包月的该值为-1)")
    private Integer surplusWarningNum;
}
